<?php

namespace maoxuner\LaravelJsonRpc\Exceptions;

use Throwable;

/**
 * Internal JSON-RPC error.
 */
class InternalException extends RpcException
{
    protected $message = 'Internal error';

    protected $code = -32603;

    public static function build(Throwable $throwable): static
    {
        return new static('', 0, $throwable);
    }
}
